<p>
  <b>Title:</b>
  <%=h @movie.title %>
</p>

<p>
  <b>Description:</b>
  <%=h @movie.description %>
</p>

<p>
  <b>Rating:</b>
  <%=h @movie.rating %>
</p>

<p>
  <b>Released on:</b>
  <%=h @movie.released_on %>
</p>

<br>
<p>
	<b>Current Reviews </b>(<%= link_to 'Adds Review', new_movie_review_path(@movie) %>)

	<p>Total of <%= @movie.reviews.length%> reviews
	<% if @movie.reviews.length > 0 %>
		with an average of <%= @average_review %></p>
		<table>
			<tr>
				<td>Score</td>
				<td>By</td>
			</tr>
			<%= render :partial => "review", :collection => @movie.reviews %>
		</table>
	<% end %>



<br><br>
<%= link_to 'Edit Movie', edit_movie_path(@movie) %> |
<%= link_to 'Back to Movie Listing', movies_path %>